<template>
  <div>
    <a @click="btn1" href="http://www.baidu.com">百度</a><hr>
        <a @click="btn2(10,$sevent)" href="http//www.baidu.com">百度</a>
  </div>
</template>

<script>
export default {
methods:{
  btn1(e){
    e.preventDefault()
  },
  btn2(num,e){
    e.preventDefault()
  }

}
}
</script>

<style>

</style>